@import "../../base/fn";
// 存在样式优先级的问题，故这里对其他nt_btn的引用放在底部
// 主要是button.nt_btn在nt_btn_plain下重写border-width

.nt_btn {
    &.nt_btn_mini {
        line-height: @ntBtnMiniHeight;
        font-size: @ntBtnMiniFontSize;
        padding: 0 .75em;
        display: inline-block;
    }
}

button, input {
    &.nt_btn {
        width: 100%;
        border-width: 0;
        outline: 0;
        -webkit-appearance: none;
        &:focus {
            outline: 0;
        }
    }
    &.nt_btn_inline,&.nt_btn_mini {
        width: auto;
    }
}

/*gap between btn*/
.nt_btn + .nt_btn {
    margin-top: @ntBtnDefaultGap;
}

.nt_btn.nt_btn_inline + .nt_btn.nt_btn_inline {
    margin-top: auto;
    margin-left: @ntBtnDefaultGap;
}

.nt_btn_area {
    margin: @ntCellsMarginTop @ntBtnDefaultGap .3em;
    &.nt_btn_area_inline {
        display: flex;
        .nt_btn {
            margin-top: auto;
            margin-right: @ntBtnDefaultGap;
            width: 100%;
            flex: 1;
            &:last-child {
                margin-right: 0;
            }
        }
    }
}

@import "btn_global";
@import "btn_default";
@import "btn_primary";
@import "btn_warn";
@import "btn_disabled";
@import "btn_plain";